package com.hy.example.common.api.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

@Setter
@Getter
@Schema(description = "分页查询参数")
public class PageParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "页码")
    @Min(1)
    protected Integer pageNum;

    @Schema(description = "分页大小")
    @Min(1)
    protected Integer pageSize;
}
